<?php

class ToolController extends Controller
{
    public function IndexAction ()
    {
        /**
         * doctrine ORM
         */
        if (empty($_GET['x'])) {
            return false;
        }
        
        $manager = Doctrine_Manager::getInstance();
        
        $manager->connection(Config::get('dsn', 'default'), 'default');
        Doctrine::generateModelsFromDb(APP_PATH . 'model', array('default'));
        
        return View::RENDER_NONE;
    }
}
?>